<div class="row">
    <div class="col-md-12 top-span-block text-center">
        <form action="<{$pagination.url}>" method="post" name="pagination">
            <input name="page" type="hidden" value="<{$pagination.page}>">
            <ul class="pager">
                <li class="previous <{if $pagination.page==1}>disabled<{/if}>"><a href="javascript:void(0);" <{if $pagination.page!=1}>onclick="page(-1);"<{/if}>>&larr; 上一页</a></li>
                <li class="next <{if $pagination.page==$pagination.totalPage}>disabled<{/if}>"><a href="javascript:void(0);" <{if $pagination.page!=$pagination.totalPage}>onclick="page(+1)"<{/if}>>下一页 &rarr;</a></li>
            </ul>
        </form>
    </div>
</div>
<script type="text/javascript">
    function page(x) {
        let page = $("input[name=page]").val();
        page = Number(page) + Number(x);
        if (page <= 0) page = 1;
        if (page > <{$pagination.totalPage}>) page = <{$pagination.totalPage}>;
        $("input[name=page]").val(page);
        $("form[name=pagination]").submit();
    }
</script>